package com.woniuxy.main.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.main.mapper.Vi_user_gymMapper;
import com.woniuxy.main.pojo.Vi_user_gym;
import com.woniuxy.main.service.Vi_user_gymService;

import lombok.Data;
@Service
@Transactional
@Data
public class Vi_user_gymServiceImp implements Vi_user_gymService {
	@Resource
	private Vi_user_gymMapper vi_user_gymMapper;

	@Override
	public List<Vi_user_gym> all() {
		// TODO Auto-generated method stub
		return vi_user_gymMapper.all();
	}

	@Override
	public Vi_user_gym findGymByUid(int uid) {
		// TODO Auto-generated method stub
		return vi_user_gymMapper.findGymByUid(uid);
	}

	@Override
	public List<Vi_user_gym> searchGym(String gname) {
		// TODO Auto-generated method stub
		return vi_user_gymMapper.findGymByGname(gname);
	}

	@Override
	public List<Vi_user_gym> showGymList(int page) {
		return vi_user_gymMapper.showGymList(page);
	}

	@Override
	public int totalPage() {
		return vi_user_gymMapper.totalPage();
	}

}
